
@echo off
cls

set THIS_BAT_FILE=%0
set LOGGER=..\..\utilities\cmdlog.exe

if not exist %LOGGER% set STDOUT_REDIRECTED=yes

if not "%STDOUT_REDIRECTED%" == "yes" (
    set STDOUT_REDIRECTED=yes
    cmd.exe /c %THIS_BAT_FILE% %* 2>&1 | %LOGGER% 1build.log
    exit/b
) 

set SOURCE_DIRECTORY=%~dp0
set compiler=..\..\service\script\make-msvc.bat
   
rem call %compiler% "Debug"   "32" "build" %SOURCE_DIRECTORY% "Visual Studio 11" "v120_CTP_Nov2012"
rem call %compiler% "Debug"   "64" "build" %SOURCE_DIRECTORY% "Visual Studio 11" "v120_CTP_Nov2012"
rem call %compiler% "Release" "32" "build" %SOURCE_DIRECTORY% "Visual Studio 11" "v120_CTP_Nov2012"
rem call %compiler% "Release" "64" "build" %SOURCE_DIRECTORY% "Visual Studio 11" "v120_CTP_Nov2012"

call %compiler% "Debug"   "32" "launch" %SOURCE_DIRECTORY% "Visual Studio 12" "CTP_Nov2013"
rem call %compiler% "Debug"   "64" "build" %SOURCE_DIRECTORY% "Visual Studio 12" "CTP_Nov2013"
rem call %compiler% "Release" "64" "build" %SOURCE_DIRECTORY% "Visual Studio 12" "CTP_Nov2013"
rem call %compiler% "Release" "32" "build" %SOURCE_DIRECTORY% "Visual Studio 12" "CTP_Nov2013"


